package com.company.factory;

import com.company.abstruct.AbstractFactory;
import com.company.abstruct.Phone;
import com.company.abstruct.Tablet;
import com.company.produce.phone.ApplePhone;
import com.company.produce.tablet.AppleTablet;

public class AppleFactory extends AbstractFactory {
    @Override
    public Phone producePhone() {
        System.out.println("苹果手机工厂生产苹果手机");
        return new ApplePhone();
    }

    @Override
    public Tablet produceTablet() {
        System.out.println("苹果平板工厂生产苹果平板");
        return new AppleTablet();
    }
}
